package com.wxzhou.wangzhuan.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.wxzhou.wangzhuan.entity.SimpleUser;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 用户收入记录
 */
public class UserIncomeRecordResponseDto implements Serializable {

    /**
     * 收入金额，单位:元
     */
    private BigDecimal amount = BigDecimal.ZERO;

    /**
     * 收入发生时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime occTime;

    /**
     * 收入业务场景：广告、短剧等
     */
    private String title;

    /**
     * 收入备注
     */
    private String remark;

    /**
     * 数据发生源:谁产生的收入,可以为空，比如如果是系统奖励，就为空
     */
    private SimpleUser fromUser;

    public UserIncomeRecordResponseDto() {
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public LocalDateTime getOccTime() {
        return occTime;
    }

    public void setOccTime(LocalDateTime occTime) {
        this.occTime = occTime;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public SimpleUser getFromUser() {
        return fromUser;
    }

    public void setFromUser(SimpleUser fromUser) {
        this.fromUser = fromUser;
    }
}
